<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
</head>
<body>
</body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>
    </div>
</div>
<script src="../lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script src="../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script src="../lib/js/config.js" charset="utf-8"></script>

<script>
    layui.use(['form', 'table', 'miniAdmin'], function () {
        var $ = layui.jquery,
            table = layui.table;

        var tableIns = table.render({
            parseData: function (res) { //将原始数据解析成 table 组件所规定的数据
                return {
                    "code": res.code,         //返回状态码
                    "msg": res.data,          //解析提示信息
                    "count": res.count,       //后台返回的数据总条数，用于自定义分页使用
                    "data": res.data          //解析数据列表
                };
            },
            elem: '#currentTableId',
            url: commentDataURL,
            cols: [[
                {field: 'id', title: 'ID', hide: true, edit: false},
                {field: 'user', width: '10%', title: '用户'},
                {field: 'content', width: '30%', title: '发布内容'},
                {field: 'post_time', width: '10%', title: '发布时间'},
                {field: 'picture_path', width: '30%', title: '图片路径'},
                {field: 'location', width: '10%', title: '定位'},
                {field: 'title', width: '10%', title: '话题/标签'}
            ]],
            limits: [10, 15, 20, 25, 50, 100],
            limit: 10,
            curr: 1,
            page: true
        });
    });

</script>
<script>

</script>

</body>
</html>